'use strict';
var path = require('path');

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1520084695995_7252';

  // add your config here
  config.middleware = [];

  config.static = {
    prefix: '/',
    dir: path.join(appInfo.baseDir, 'static'),
    preload: false,
    extensions: ['html']
  }

  config.security = {
    xframe: {
      enable: false,
    },
    csrf: {
      enable: false
    }
  }


  config.apiServer = {

    host: 'http://stock.168zhibo.cn',

    prefix: "/zinvest"

  }

  return config;


};
